Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance by using hstore to compute row_changed_fields #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DavidBoone
Copy link

I noticed the performance hit when hstore was swapped out for jsonb. I tracked it down to the query which calculated changed_fields, and found that be reverting to using the hstore - operator I was able to recover most of that performance. It's still slower than hstore, but the gap is significantly shrunk.

No audit trigger: 9.7s
hstore original: 16.5s
jsonb original: 25.4s
jsonb This PR: 18.1s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant